/**
 * File: BucketNodeIdWriteController.java
 * Created by: mhaimel
 * Created on: May 21, 2010
 * CVS:  $Id: BucketNodeIdWriteController.java 1.0 May 21, 2010 2:27:33 PM mhaimel Exp $
 */
package uk.ac.ebi.curtain.controller.general;

import java.io.File;

import uk.ac.ebi.curtain.controller.BucketNodeInfoBean;
import uk.ac.ebi.curtain.controller.ParallelQueuedController;
import uk.ac.ebi.curtain.controller.SimpleReport;
import uk.ac.ebi.curtain.management.IControllerReport;
import uk.ac.ebi.curtain.processor.general.BucketNodeIdWriterProcessor;

/**
 * @author mhaimel
 *
 */
public class BucketNodeIdWriteController extends ParallelQueuedController<BucketNodeInfoBean, File, BucketNodeIdWriterProcessor> {

	@Override
	protected BucketNodeIdWriterProcessor buildController() {
		return getContext().getInjector().getInstance(BucketNodeIdWriterProcessor.class);
	}

	@Override
	protected IControllerReport getReturnCall() {
		return new SimpleReport("Finished creating Buckets with the node Ids!");
	}
	
}
